package com.kalvin.kvf.modules.dy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.kalvin.kvf.modules.dy.entity.BloggersVideo;
import com.kalvin.kvf.modules.dy.mapper.BloggersVideoMapper;

import java.util.List;

/**
 * <p>
 * 视频库表 服务实现类
 * </p>
 * @since 2023-11-13 09:33:48
 */
@Service
public class BloggersVideoServiceImpl extends ServiceImpl<BloggersVideoMapper, BloggersVideo> implements BloggersVideoService {

    @Override
    public Page<BloggersVideo> listBloggersVideoPage(BloggersVideo bloggersVideo) {
        Page<BloggersVideo> page = new Page<>(bloggersVideo.getCurrent(), bloggersVideo.getSize());
        List<BloggersVideo> bloggersVideos = baseMapper.selectBloggersVideoList(bloggersVideo, page);
        return page.setRecords(bloggersVideos);
    }

}
